projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8dfbe3
)
(difftm): Don't store a long value into an int variable.
author
Richard M. Stallman
<rms@gnu.org>
Sat, 28 May 1994 02:06:50 +0000
(
02:06
+0000)
committer
Richard M. Stallman
<rms@gnu.org>
Sat, 28 May 1994 02:06:50 +0000
(
02:06
+0000)
src/editfns.c
patch
|
blob
|
history
diff --git
a/src/editfns.c
b/src/editfns.c
index 28036650c92653f072beb406367b74a17d00f12c..8b0158c322bb9c829c0315aec98ba6be2d8833b4 100644
(file)
--- a/
src/editfns.c
+++ b/
src/editfns.c
@@
-629,7
+629,7
@@
difftm (a, b)
int ay = a->tm_year + (TM_YEAR_ORIGIN - 1);
int by = b->tm_year + (TM_YEAR_ORIGIN - 1);
/* Some compilers can't handle this as a single return statement. */
-
int
days = (
+
long
days = (
/* difference in day of year */
a->tm_yday - b->tm_yday
/* + intervening leap days */